/*
 * @Author: error: git config user.name && git config user.email & please set dead value or install git
 * @Date: 2022-12-28 14:57:24
 * @LastEditors: error: git config user.name && git config user.email & please set dead value or install git
 * @LastEditTime: 2022-12-28 22:56:12
 * @FilePath: \html学习\vue-test\vue-history\src\router.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import {
    createRouter,
    createWebHistory,
    createWebHashHistory
} from 'vue-router'

// import HomePage from './components/HomePage.vue'
// import ListPage from './components/ListPage.vue'
// import DetailPage from './components/DetailPage.vue'
import PageA from './components/PageA.vue'
import PageB from './components/PageB.vue'

const router = createRouter({
    // history: createWebHistory(),
    history: createWebHashHistory(),
    routes: [
        // {
        //     path: '/home',
        //     component: HomePage
        // },
        // {
        //     path: '/list',
        //     component: ListPage
        // },
        // {
        //     path: '/detail/:id',
        //     component: DetailPage
        // },
        {
            path: '/pageA',
            component: PageA
        },
        {
            path: '/pageB',
            component: PageB
        },

    ]
})
export default router